﻿using System;

namespace AddGenericConstraint.Test.Program
{
    internal class Program
    {
        private static void Main( string[] args )
        {
            Console.WriteLine("Values of TypeCode:");
            foreach ( TypeCode typeCode in EnumHelper.GetValues<TypeCode>() )
            {
                Console.WriteLine( typeCode );
            }

            Console.WriteLine("Parameter types of EventHandler");
            foreach ( Type type in DelegateHelper.GetDelegateParameters<EventHandler>() )
            {
                Console.WriteLine(type.Name);
            }

            // Thes lines will give an error.
            //EnumHelper.GetValues<DateTime>();
            //DelegateHelper.GetDelegateParameters<DateTime>();
        }
    }
}